<template>
  <div class="pe-list">
    <p class="tit">{{ listInfo.title }}</p>
    <div class="wrapper">
      <p
        class="ellipsis-1"
        v-for="item in listInfo.dataList"
        :key="item.key"
        @click="handleClick(item)"
      >
        <img class="img" src="@/assets/img/personal/enterprise.svg" />{{
          item.company
        }}
      </p>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    listInfo: {
      type: Object,
      default: () => {
        return {
          title: "",
          dataList: [],
        };
      },
    },
  },
  data() {
    return {
      //
    };
  },
  methods: {
    handleClick(item) {
      this.$Bus.$emit("progressBar", item.company);
    },
  },
};
</script>
<style lang="scss" scoped>
.pe-list {
  width: 24%;
  background-color: #fff;
  .tit {
    background-color: rgba($color: $mainColor, $alpha: 0.2);
    text-align: center;
    line-height: 35px;
  }
  .wrapper {
    font-size: 12px;
    padding: 15px 15px 0;
    p {
      margin-bottom: 5px;
      line-height: 30px;
      cursor: pointer;
      &:hover {
        color: $mainColor;
      }
    }
    .img {
      width: 12px;
      margin-right: 5px;
      position: relative;
      top: -1px;
    }
  }
}
</style>
